home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / Speech Synthesis Manager / Installer Source / Templates / DeleteAFile.r next >
Encoding:
Text File  |  1996-11-11  |  1.4 KB  |  49 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  *
  3.  *    File:        DeleteAFile.r -    Rez Source
  4.  *
  5.  *    Author:        Deric Horn
  6.  *
  7.  *    Template for Deleting files.
  8.  *    This contains the necessary type deffinitions to delete files.
  9.  *
  10.  *    History:    <1>    (12/2/94) Created this file.
  11.  *
  12.  *----------------------------------------------------------------------------*/
  13.  
  14. #ifndef    TARGETID
  15.     #define    TARGETFS    targetFileBase+ID
  16.  
  17.     resource 'intf' ( TARGETFS )     /* File Spec */
  18.     {
  19.         format0
  20.         {
  21.             noSearchForFile,
  22.             TypeCrNeedNotMatch,
  23.             FILETYPE,
  24.             FILECREATOR,
  25.             0x0,
  26.             DESTDIR FILENAME
  27.         }
  28.     };
  29. #else
  30.     #define    TARGETFS    targetFileBase+TARGETID
  31. #endif
  32.  
  33. resource 'infa' (sourceFileBase+ID,FILENAME) {
  34.     format0 {
  35.         deleteWhenRemoving,                /* Delete the file if remove (option-custom) is clicked    */
  36.         deleteWhenInstalling,             /* Delete the target before copying new one */
  37.         dontCopy,                         /* Don't copy the file to the destination */
  38.         updateEvenIfNewer,                 /* do not Install this version, if newer one exists */
  39.         updateExisting,                 /* Always replace an existing copy */
  40.         copyIfNewOrUpdate,                /* Copy whether the target file exists or not */
  41.         rsrcFork, dataFork,                /* Copy both forks of the file */
  42.         TARGETFS,                        /* TARGET file spec for this file */
  43.         0,                                /* SOURCE file spec (NONE needed) */
  44.         0,                                /* atom size (filled in by ScriptCheck) */
  45.         ""                                /* Atom Description (Installer will use file name) */
  46.     };
  47. };
  48.  
  49. #undef    TARGETID